<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/pages/common/taglibs.jsp"%>
<style>
.formTable{text-align:left;}

</style>
<h1>付款到银行申请</h1>
<script type="text/javascript" src="${ctx}/pages/templete/js/validate/paytobank/applyOp.js"></script>
<form id="form" action="${ctx}/paytobank/doApplyOp.do" method="POST" target="_blank" >
	<input type="hidden" name="VerficationCode" value="${config.verficationCode }"/>
	<table width="100%" class="formTable">
		<tr>
			<td width="35%" align=right>版本号:</td>
			<td>
				<select id="version" name="version">
					<option value="1.0" selected >1.0</option>
					<option value="1.1">1.1</option>
				</select>
			</td>
		</tr>
		<tr>
			<td align=right>交易代码:</td>
			<td>
				<input type="text" id="tranCode" name="tranCode" value="${config.tranCode }" size="50"/>
			</td>
			<td width="25%" align=left>
				<font color=red>*</font>
				<span id="tranCodeTip"></span>
			</td>
		</tr>
		<tr>
			<td align=right>企业ID:</td>
			<td>
				<input type="text" id="customerId" name="customerId" value="${config.merchantID }" size="50"/>
			</td>
			<td align=left>
				<font color=red>*</font>
				<span id="customerIdTip"></span>
			</td>
		</tr>
		<tr>
			<td align=right>国付宝账户:</td>
			<td>
				<input type="text" id="payAcctId" name="payAcctId" value="" size="50"/>
			</td>
			<td align=left>
				<font color=red>*</font>
				<span id="payAcctIdTip"></span>
			</td>
		</tr>
		
		<tr>
			<td align=right>订单号:</td>
			<td>
				<input type="text" id="merOrderNum" name="merOrderNum" value="" size="50" autoComplete="off"/>
			</td>
			<td width="25%" align=left>
				<font color=red>*</font>
				<span id="merOrderNumTip"></span>
			</td>
		</tr>
		<tr>
			<td align=right>商户后台通知地址:</td>
			<td>
				<input type="text" id="merURL" name="merURL" value="${config.backgroundMerUrl }" style="width:450px;"/>
			</td>
			<td width="25%" align=left>
				<font color=red>*</font>
				<span id="merURLTip"></span>
			</td>
		</tr>
		<tr>
			<td align=right>交易金额:</td>
			<td>
				<input type="text" id="tranAmt" name="tranAmt" value="${config.tranAmt }" size="50"/>
			</td>
			<td width="25%" align=left>
				<font color=red>*</font>
				<span id="tranAmtTip"></span>
			</td>
		</tr>
		<tr>
			<td align=right>收款方户名:</td>
			<td>
				<input type="text" id="recvBankAcctName" name="recvBankAcctName" value="方红文" size="50"/>
			</td>
			<td width="25%" align=left>
				<font color=red>*</font>
				<span id="recvBankAcctNameTip"></span>
			</td>
		</tr>
		<tr>
			<td align=right>收款方开户行:</td>
			<td>
				<input type="text" id="recvBankName" name="recvBankName" value="中国农业银行股份" size="50"/>
			</td>
			<td width="25%" align=left>
				<font color=red>*</font>
				<span id="recvBankNameTip"></span>
			</td>
		</tr>
		<tr>
			<td align=right>开户行所在省份:</td>
			<td>
				<input type="text" id="recvBankProvince" name="recvBankProvince" value="北京" size="50"/>
			</td>
			<td width="25%" align=left>
				<font color=red>*</font>
				<span id="recvBankProvinceTip"></span>
			</td>
		</tr>
		<tr>
			<td align=right>开户行所在城市:</td>
			<td>
				<input type="text" id="recvBankCity" name="recvBankCity" value="北京" size="50"/>
			</td>
			<td width="25%" align=left>
				<font color=red>*</font>
				<span id="recvBankCityTip"></span>
			</td>
		</tr>
		
		<tr>
			<td align=right>开户网点名称:</td>
			<td>
				<input type="text" id="recvBankBranchName" name="recvBankBranchName" value="中国农业银行股份有限公司北京西坝河支行" size="50"/>
			</td>
			<td width="25%" align=left>
				<font color=red>*</font>
				<span id="recvBankBranchNameTip"></span>
			</td>
		</tr>
		<tr>
			<td align=right>收款方银行帐号:</td>
			<td>
				<input type="text" id="recvBankAcctNum" name="recvBankAcctNum" value="6882112234443332" size="50"/>
			</td>
			<td width="25%" align=left>
				<font color=red>*</font>
				<span id="recvBankAcctNumTip"></span>
			</td>
		</tr>
		<tr>
			<td align=right>公私标识:</td>
			<td>
				<input type="text" id="corpPersonFlag" name="corpPersonFlag" value="1" size="50"/>
			</td>
			<td width="25%" align=left>
				<font color=red>*</font>
				<span id="corpPersonFlagTip"></span>
			</td>
		</tr>
		<tr><td align=right></td><td align=center>1:对公,2:对私</td></tr>
		<tr>
			<td align=right>交易时间:</td>
			<td><input type="text" id="tranDateTime" name="tranDateTime" value="${config.tranDateTime }" size="50" /></td>
			<td align=left>
				<font color=red>*</font>
				<span id="tranDateTimeTip"></span>
			</td>
		</tr>
		<tr>
			<td align=right>交易备注:</td>
			<td><input type="text" id="description" name="description" value="网关单笔付款到银行测试" size="50" /></td>
			<td align=left>
				<font color=red>*</font>
				<span id="descriptionTip"></span>
			</td>
		</tr>

		<tr>
			<td width="30%" align=right>报文加密方式:</td>
			<td align=left width="45%">
				<input type="text"  id="signType" name="signType" value="1" size="50" />
			</td>
			<td width="25%" align=left><span id="signTypeTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right></td>
			<td align=left width="45%">&nbsp;&nbsp;1:MD5,2:SHA,3:API</td>
			<td width="25%"></td>
		</tr>

		<tr><td align=right>字符集:  </td><td><input type="text"  id="merchantEncode" name="merchantEncode" value="2" size="50"/></td></tr>
		<tr><td align=right></td><td align=center>1:GBK,2:UTF-8 (不填则当成1处理)</td></tr>
		<tr><td align=right>是否审核:  </td><td><input type="text" id="approve" name="approve" value="" size="50"/></td></tr>
		<tr><td align=right></td><td align=center>1:需要portal审核, 2:不需要portal审核</td></tr>

		<tr><td align=right>是否今日结算:  </td><td><input type="text" id="settlementToday" name="settlementToday" value="${config.settlementToday }" size="50"/></td></tr>
		
		<tr><td align=right></td><td align=center>1:是, 0:否</td></tr>

		<tr><td align=right>商户识别码:  </td><td><input type="text" id="verficationCode" name="verficationCode" value="${config.verficationCode }" size="50"/></td></tr>
		<tr>
			<td colspan=3 width="100%">
				<center>
					<input type="button" value="设置订单" id="defButton" name="defButton"/>&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="submit" name="submit" id="submit" value="开始测试" />
				</center>
			</td>
		</tr>
	</table>
</form>